home *** CD-ROM | disk | FTP | other *** search
/ Tripas 4 / TRIPAS 004.iso / sin.EXE / SIN / BASE / models / turtop.def < prev    next >
Encoding:
Text File  |  1998-11-03  |  2.0 KB  |  80 lines

  1. SDEF
  2. //
  3. // The file declaration section
  4. //
  5. path models/turtop
  6. scale 1.0
  7. turtop_base.sbm
  8. turtop_base.tga
  9.  
  10. //
  11. // Declare the animation types and files
  12. //
  13. fire      turtop_fire.SAM
  14. down_idle turtop_idledown.SAM
  15. up_idle   turtop_idleup.SAM
  16. lower     turtop_lower.SAM
  17. raise     turtop_raise.SAM
  18.  
  19. id 200 group turret bone barrel
  20. id 200 group turret bone barrel1
  21. id 210 group turret bone barrel2
  22.  
  23. //
  24. // The initialization section
  25. //
  26. !init:
  27. server classname actor
  28. server weapon GenericBullet
  29.  
  30. //
  31. // Define the animation sound references
  32. //
  33.  
  34. server aliascache snd_seek1 "monsters/turtop/topmove1.wav"
  35. server aliascache snd_stop1 "monsters/turtop/topstop1.wav"
  36.  
  37. client aliascache snd_lower1 "monsters/turtop/topretr1.wav"
  38. client aliascache snd_raise1 "monsters/turtop/turrise1.wav"
  39. client aliascache snd_idle1 "monsters/turtop/turrise1.wav"
  40. client aliascache snd_fire1 "weapons/camgun/newmix.wav"
  41.  
  42. //
  43. // The main section
  44. //
  45. !main:
  46.  
  47. //
  48. // Define the client/server animation references
  49. //
  50.  
  51. server fire 0 attack_start
  52. server fire 0 weaponsound
  53. server fire 0 fire
  54. client fire 0 randomsound snd_fire 1 1
  55. client fire 0 attach barrel1 sprites/gunblast.spr time 0.05 scale 0.4 randomroll
  56. server fire 3 weaponsound
  57. server fire 3 fire
  58. client fire 3 randomsound snd_fire 1 1
  59. client fire 3 attach barrel2 sprites/gunblast.spr time 0.05 scale 0.4 randomroll
  60. server fire last attack_finished
  61.  
  62. server down_idle 0 checkvicinity
  63.  
  64. server lower 0 endseek
  65. client lower 1 randomsound snd_lower 1 2
  66. client lower end randomsound snd_idle 1 2
  67. server lower end nextanim down_idle 
  68.  
  69. client raise 1 randomsound snd_raise 1 2
  70. server raise end setsighttime
  71. server raise end seek
  72. server raise end nextanim up_idle
  73.  
  74. /*SINED trap_securityturret (1 .3 .3) (0 0 0) (0 0 0)
  75. If targeted, Turret will only be activated when triggered
  76. "wakeupdistance - Distance at which the camgun senses players (Default is 750)
  77. "firingdistance - Distance at whicht the camgun will fire at a player (Default is 800)
  78. Make sure that wakeupdistance < firingdistance.
  79. */
  80.